package com.ruoyi.project.para.paeaParaAuditAmt.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.para.paeaParaAuditAmt.mapper.PaeaParaAuditAmtMapper;
import com.ruoyi.project.para.paeaParaAuditAmt.domain.PaeaParaAuditAmt;
import com.ruoyi.project.para.paeaParaAuditAmt.service.IPaeaParaAuditAmtService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 重点监控限额Service业务层处理
 *
 * @author ruoyi
 * @date 2020-03-16
 */
@Service
public class PaeaParaAuditAmtServiceImpl extends ServiceImpl<PaeaParaAuditAmtMapper, PaeaParaAuditAmt> implements IPaeaParaAuditAmtService
{
    @Autowired
    private PaeaParaAuditAmtMapper paeaParaAuditAmtMapper;

    /**
     * 查询重点监控限额
     *
     * @param id 重点监控限额ID
     * @return 重点监控限额
     */
    @Override
    public PaeaParaAuditAmt selectPaeaParaAuditAmtById(String id)
    {
        return paeaParaAuditAmtMapper.selectPaeaParaAuditAmtById(id);
    }

    /**
     * 查询重点监控限额列表
     *
     * @param paeaParaAuditAmt 重点监控限额
     * @return 重点监控限额
     */
    @Override
    public List<PaeaParaAuditAmt> selectPaeaParaAuditAmtList(PaeaParaAuditAmt paeaParaAuditAmt)
    {
        return paeaParaAuditAmtMapper.selectPaeaParaAuditAmtList(paeaParaAuditAmt);
    }

    /**
     * 新增重点监控限额
     *
     * @param paeaParaAuditAmt 重点监控限额
     * @return 结果
     */
    @Override
    public int insertPaeaParaAuditAmt(PaeaParaAuditAmt paeaParaAuditAmt)
    {
        paeaParaAuditAmt.setCreateTime(DateUtils.getNowDate());
        return paeaParaAuditAmtMapper.insertPaeaParaAuditAmt(paeaParaAuditAmt);
    }

    /**
     * 修改重点监控限额
     *
     * @param paeaParaAuditAmt 重点监控限额
     * @return 结果
     */
    @Override
    public int updatePaeaParaAuditAmt(PaeaParaAuditAmt paeaParaAuditAmt)
    {
        paeaParaAuditAmt.setUpdateTime(DateUtils.getNowDate());
        return paeaParaAuditAmtMapper.updatePaeaParaAuditAmt(paeaParaAuditAmt);
    }

    /**
     * 删除重点监控限额对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deletePaeaParaAuditAmtByIds(String ids)
    {
        return paeaParaAuditAmtMapper.deletePaeaParaAuditAmtByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除重点监控限额信息
     *
     * @param id 重点监控限额ID
     * @return 结果
     */
    @Override
    public int deletePaeaParaAuditAmtById(String id)
    {
        return paeaParaAuditAmtMapper.deletePaeaParaAuditAmtById(id);
    }
}
